<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>财务 - 极简Todo系统</title>
    <link
      href="https://cdn.bootcdn.net/ajax/libs/tailwindcss/2.2.19/tailwind.min.css"
      rel="stylesheet"
    />
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
    />
    <style>
      body {
        height: 100vh;
        padding-bottom: 83px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
          sans-serif;
        background-color: #f2f2f7;
      }

      .ios-status-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 44px;
        padding: 0 16px;
        font-size: 12px;
        font-weight: 600;
        color: #000;
        background-color: #ffffff;
      }

      .ios-tab-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: space-around;
        height: 83px;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-top: 1px solid #e5e5e5;
      }

      .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 49px;
        font-size: 10px;
        color: #8e8e93;
      }

      .tab-item.active {
        color: #007aff;
      }

      .tab-item i {
        margin-bottom: 4px;
        font-size: 24px;
      }

      .summary-card {
        padding: 20px;
        color: white;
        background-color: #007aff;
        border-radius: 12px;
      }

      .summary-title {
        margin-bottom: 4px;
        font-size: 14px;
        opacity: 0.8;
      }

      .summary-amount {
        margin-bottom: 16px;
        font-size: 32px;
        font-weight: 700;
      }

      .summary-stats {
        display: flex;
        justify-content: space-between;
      }

      .stats-item {
        text-align: center;
      }

      .stats-value {
        font-size: 18px;
        font-weight: 600;
      }

      .stats-label {
        font-size: 12px;
        opacity: 0.8;
      }

      .transaction-item {
        display: flex;
        align-items: center;
        padding: 16px;
        background-color: white;
        border-bottom: 1px solid #e5e5e5;
      }

      .transaction-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-right: 16px;
        color: white;
        border-radius: 20px;
      }

      .transaction-info {
        flex: 1;
      }

      .transaction-title {
        margin-bottom: 4px;
        font-weight: 600;
      }

      .transaction-category {
        font-size: 12px;
        color: #8e8e93;
      }

      .transaction-amount {
        font-weight: 600;
      }

      .income {
        color: #34c759;
      }

      .expense {
        color: #ff3b30;
      }

      .add-button {
        position: fixed;
        right: 20px;
        bottom: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        color: white;
        background-color: #007aff;
        border-radius: 28px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      }
    </style>
  </head>
  <body>
    <!-- iOS 状态栏 -->
    <div class="ios-status-bar">
      <div>9:41</div>
      <div class="flex space-x-2">
        <i class="fas fa-signal"></i>
        <i class="fas fa-wifi"></i>
        <i class="fas fa-battery-full"></i>
      </div>
    </div>

    <div class="bg-white p-4 border-b border-gray-200 flex justify-between items-center">
      <h1 class="text-xl font-semibold">财务</h1>
      <div class="flex space-x-4">
        <a href="finance-stats.html" class="text-gray-500"><i class="fas fa-chart-pie"></i></a>
        <a href="finance-categories.html" class="text-gray-500"><i class="fas fa-tags"></i></a>
      </div>
    </div>

    <div class="p-4">
      <div class="summary-card mb-6">
        <div class="summary-title">本月余额</div>
        <div class="summary-amount">¥3,250.00</div>

        <div class="summary-stats">
          <div class="stats-item">
            <div class="stats-value">¥5,800.00</div>
            <div class="stats-label">收入</div>
          </div>
          <div class="stats-item">
            <div class="stats-value">¥2,550.00</div>
            <div class="stats-label">支出</div>
          </div>
        </div>
      </div>

      <div class="flex justify-between items-center mb-4">
        <h2 class="text-lg font-semibold text-gray-700">最近交易</h2>
        <a href="#" class="text-blue-500 text-sm">查看全部</a>
      </div>

      <div class="bg-white rounded-lg overflow-hidden shadow-sm">
        <div class="transaction-item">
          <div class="transaction-icon" style="background-color: #34c759">
            <i class="fas fa-briefcase"></i>
          </div>
          <div class="transaction-info">
            <div class="transaction-title">工资收入</div>
            <div class="transaction-category">6月15日</div>
          </div>
          <div class="transaction-amount income">+¥5,000.00</div>
        </div>

        <div class="transaction-item">
          <div class="transaction-icon" style="background-color: #ff3b30">
            <i class="fas fa-shopping-cart"></i>
          </div>
          <div class="transaction-info">
            <div class="transaction-title">超市购物</div>
            <div class="transaction-category">6月14日 · 日常</div>
          </div>
          <div class="transaction-amount expense">-¥320.50</div>
        </div>

        <div class="transaction-item">
          <div class="transaction-icon" style="background-color: #ff3b30">
            <i class="fas fa-utensils"></i>
          </div>
          <div class="transaction-info">
            <div class="transaction-title">午餐</div>
            <div class="transaction-category">6月14日 · 餐饮</div>
          </div>
          <div class="transaction-amount expense">-¥45.00</div>
        </div>

        <div class="transaction-item">
          <div class="transaction-icon" style="background-color: #ff3b30">
            <i class="fas fa-bus"></i>
          </div>
          <div class="transaction-info">
            <div class="transaction-title">交通费</div>
            <div class="transaction-category">6月13日 · 交通</div>
          </div>
          <div class="transaction-amount expense">-¥15.00</div>
        </div>

        <div class="transaction-item">
          <div class="transaction-icon" style="background-color: #34c759">
            <i class="fas fa-gift"></i>
          </div>
          <div class="transaction-info">
            <div class="transaction-title">红包收入</div>
            <div class="transaction-category">6月12日</div>
          </div>
          <div class="transaction-amount income">+¥800.00</div>
        </div>
      </div>
    </div>

    <a href="finance-edit.html" class="add-button">
      <i class="fas fa-plus text-xl"></i>
    </a>

    <!-- iOS 底部导航栏 -->
    <div class="ios-tab-bar">
      <a href="home.html" class="tab-item">
        <i class="fas fa-tasks"></i>
        <span>任务</span>
      </a>
      <a href="pomodoro.html" class="tab-item">
        <i class="fas fa-clock"></i>
        <span>番茄钟</span>
      </a>
      <a href="finance.html" class="tab-item active">
        <i class="fas fa-wallet"></i>
        <span>财务</span>
      </a>
      <a href="notes.html" class="tab-item">
        <i class="fas fa-sticky-note"></i>
        <span>笔记</span>
      </a>
      <a href="profile.html" class="tab-item">
        <i class="fas fa-user"></i>
        <span>我的</span>
      </a>
    </div>
  </body>
</html>
